package com.yugao.fintech.draper.security.exception;

import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
import org.springframework.security.oauth2.core.OAuth2Error;

public class AuthScopeException extends OAuth2AuthenticationException {

	/**
	 * Constructs a <code>AuthScopeException</code> with the specified message.
	 * @param msg the detail message.
	 */
	public AuthScopeException(String msg) {
		super(new OAuth2Error(msg), msg);
	}

	/**
	 * Constructs a {@code AuthScopeException} with the specified message and root cause.
	 * @param msg the detail message.
	 * @param cause root cause
	 */
	public AuthScopeException(String msg, Throwable cause) {
		super(new OAuth2Error(msg), cause);
	}

}
